﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/PaymentPlatformMaster.master" AutoEventWireup="true" CodeBehind="OrderInfoView.aspx.cs" Inherits="OnlinePayment.OP.OrderInfoView" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <style type="text/css">
  *{
	    margin:0;
	    padding:0;
    }
    table{
	    border-collapse: collapse;
	    table-layout:automatic;
	    width:99%;
	    margin:0px;
        padding:0px;
    }
    td,th,thead,tbody
    {
        margin:0px;
        padding:0px;
    } 
    td, th{
	border:1px solid #e8e7e1;
    } 
    thead{
	    background:#f7f6f0;
    }
    .inputdiy input
    {   margin:0px;
        padding:2px;
        margin:0px;
        border:2px solid #DDDDDD;
        text-align:left;
        vertical-align:middle;
        line-height:25px;
        height:25px;
        background-color:White;
        background-image:none;
        
    }
    .iniInput{
         margin:0px;
        padding:0px;
        width:104px;
        padding:0px;
        margin:0px;
        border:1px #fff;
        background:inherit;
        height: 23px;
    }
    

    
    </style>
    
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">

    <div class="box rightnow">
              <h3 class="reallynow">查看缴费订单</h3>
                    
              <p class="youhave">
                    您好，您可以：
              </p>

                   
       <br />
       <asp:Label ID="lblOrderKind" runat="server" Text="选择查看的项目种类"></asp:Label>
       <asp:DropDownList ID="kindList" runat="server" 
            onselectedindexchanged="kindList_SelectedIndexChanged" AutoPostBack="True"></asp:DropDownList>
       <br/> <br />
            <% String kindSwitch = kindList.SelectedItem.Text;
               switch(kindSwitch){
                    case "请选择":%>
                        ※您尚未选择想要查看的订单类型
                      <% break;
                   case "水电费":%>
                        水电费
                      <% break;
                   case "一卡通":%>
                        一卡通
                      <% break;
                   case "校园网":%>
                        校园网
                      <% break;
                   default:%>
                        学费/双专业费/重修费
                  <%     break;
                }%>
               
                

                <asp:GridView ID="utilityOrderList" runat="server" AutoGenerateColumns="False" Width="676px" onpageindexchanging="GV_PPO_PageIndexChanging"
                    AllowPaging="True" PageSize="6" style="margin-top: 20px "  visible="false">
                            <Columns>
                                <asp:BoundField DataField="orderId" HeaderText="订单号"></asp:BoundField>   
                                <asp:BoundField DataField="totalAmount" HeaderText="订单金额" ></asp:BoundField>
                                <asp:BoundField DataField="orderDate" HeaderText="下单日期"></asp:BoundField>   
                                <asp:BoundField DataField="date" HeaderText="水电费月份"></asp:BoundField>
                            </Columns>
                              <HeaderStyle VerticalAlign="Middle" HorizontalAlign="Center" Height="30px" CssClass="h3bar box" />
                            <RowStyle Height="25px"  VerticalAlign="Middle" HorizontalAlign="Center" /> 
                            <FooterStyle />
                            <PagerStyle Font-Bold="True" Font-Size="12px" 
                                HorizontalAlign="Right" />
                                <PagerTemplate>
                当前第:
                <asp:Label ID="LabelCurrentPage" runat="server" Text="<%# ((GridView)Container.NamingContainer).PageIndex + 1 %>"></asp:Label>
                页/共:
                <asp:Label ID="LabelPageCount" runat="server" Text="<%# ((GridView)Container.NamingContainer).PageCount %>"></asp:Label>
                页
                <asp:LinkButton ID="LinkButtonFirstPage" runat="server" CommandArgument="First" CommandName="Page"
                    Visible='<%#((GridView)Container.NamingContainer).PageIndex != 0 %>'>首页</asp:LinkButton>
                <asp:LinkButton ID="LinkButtonPreviousPage" runat="server" CommandArgument="Prev"
                    CommandName="Page" Visible='<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>'>上一页</asp:LinkButton>
                <asp:LinkButton ID="LinkButtonNextPage" runat="server" CommandArgument="Next" CommandName="Page"
                    Visible='<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>'>下一页</asp:LinkButton>
                <asp:LinkButton ID="LinkButtonLastPage" runat="server" CommandArgument="Last" CommandName="Page"
                    Visible='<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>'>尾页</asp:LinkButton>
                转到第
                <asp:TextBox ID="txtNewPageIndex" runat="server" Width="20px" Text='<%# ((GridView)Container.Parent.Parent).PageIndex + 1 %>' />页
                <asp:LinkButton ID="btnGo" runat="server" CausesValidation="False" CommandArgument="-2"
                    CommandName="Page" Text="GO" />
            </PagerTemplate>
           </asp:GridView> 


            <asp:GridView ID="netWortPortOrderList" runat="server" AutoGenerateColumns="False" Width="676px" onpageindexchanging="GV_PPO_PageIndexChanging"
                    AllowPaging="True" PageSize="6" style="margin-top: 0px" visible="false">
                            <Columns>
                               <asp:BoundField DataField="orderId" HeaderText="订单号"></asp:BoundField>   
                                <asp:BoundField DataField="totalAmount" HeaderText="订单金额" ></asp:BoundField>
                                <asp:BoundField DataField="orderDate" HeaderText="下单日期"></asp:BoundField>   
                                <asp:BoundField DataField="portId" HeaderText="充值端口号"></asp:BoundField>
                               
                            </Columns>
                             <HeaderStyle VerticalAlign="Middle" HorizontalAlign="Center" Height="30px" CssClass="h3bar box" />
                            <RowStyle Height="25px"  VerticalAlign="Middle" HorizontalAlign="Center" /> 
                            <FooterStyle />
                            <PagerStyle Font-Bold="True" Font-Size="12px" 
                                HorizontalAlign="Right" />
                                <PagerTemplate>
                当前第:
                <asp:Label ID="LabelCurrentPage" runat="server" Text="<%# ((GridView)Container.NamingContainer).PageIndex + 1 %>"></asp:Label>
                页/共:
                <asp:Label ID="LabelPageCount" runat="server" Text="<%# ((GridView)Container.NamingContainer).PageCount %>"></asp:Label>
                页
                <asp:LinkButton ID="LinkButtonFirstPage" runat="server" CommandArgument="First" CommandName="Page"
                    Visible='<%#((GridView)Container.NamingContainer).PageIndex != 0 %>'>首页</asp:LinkButton>
                <asp:LinkButton ID="LinkButtonPreviousPage" runat="server" CommandArgument="Prev"
                    CommandName="Page" Visible='<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>'>上一页</asp:LinkButton>
                <asp:LinkButton ID="LinkButtonNextPage" runat="server" CommandArgument="Next" CommandName="Page"
                    Visible='<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>'>下一页</asp:LinkButton>
                <asp:LinkButton ID="LinkButtonLastPage" runat="server" CommandArgument="Last" CommandName="Page"
                    Visible='<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>'>尾页</asp:LinkButton>
                转到第
                <asp:TextBox ID="txtNewPageIndex" runat="server" Width="20px" Text='<%# ((GridView)Container.Parent.Parent).PageIndex + 1 %>' />页
                <asp:LinkButton ID="btnGo" runat="server" CausesValidation="False" CommandArgument="-2"
                    CommandName="Page" Text="GO" />
            </PagerTemplate>
           </asp:GridView> 


            <asp:GridView ID="stuCardOrderList" runat="server" AutoGenerateColumns="False" Width="676px" onpageindexchanging="GV_PPO_PageIndexChanging"
                    AllowPaging="True" PageSize="6" style="margin-top: 0px" visible="false">
                            <Columns>
                                <asp:BoundField DataField="orderId" HeaderText="订单号"></asp:BoundField>   
                                <asp:BoundField DataField="totalAmount" HeaderText="订单金额" ></asp:BoundField>
                                <asp:BoundField DataField="orderDate" HeaderText="下单日期"></asp:BoundField>   
                                <asp:BoundField DataField="stuCardId" HeaderText="充值学生卡号"></asp:BoundField>
                            </Columns>
                             <HeaderStyle VerticalAlign="Middle" HorizontalAlign="Center" Height="30px" CssClass="h3bar box" />
                            <RowStyle Height="25px"  VerticalAlign="Middle" HorizontalAlign="Center" /> 
                            <FooterStyle />
                            <PagerStyle Font-Bold="True" Font-Size="12px"
                                HorizontalAlign="Right" />
                                <PagerTemplate>
                当前第:
                <asp:Label ID="LabelCurrentPage" runat="server" Text="<%# ((GridView)Container.NamingContainer).PageIndex + 1 %>"></asp:Label>
                页/共:
                <asp:Label ID="LabelPageCount" runat="server" Text="<%# ((GridView)Container.NamingContainer).PageCount %>"></asp:Label>
                页
                <asp:LinkButton ID="LinkButtonFirstPage" runat="server" CommandArgument="First" CommandName="Page"
                    Visible='<%#((GridView)Container.NamingContainer).PageIndex != 0 %>'>首页</asp:LinkButton>
                <asp:LinkButton ID="LinkButtonPreviousPage" runat="server" CommandArgument="Prev"
                    CommandName="Page" Visible='<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>'>上一页</asp:LinkButton>
                <asp:LinkButton ID="LinkButtonNextPage" runat="server" CommandArgument="Next" CommandName="Page"
                    Visible='<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>'>下一页</asp:LinkButton>
                <asp:LinkButton ID="LinkButtonLastPage" runat="server" CommandArgument="Last" CommandName="Page"
                    Visible='<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>'>尾页</asp:LinkButton>
                转到第
                <asp:TextBox ID="txtNewPageIndex" runat="server" Width="20px" Text='<%# ((GridView)Container.Parent.Parent).PageIndex + 1 %>' />页
                <asp:LinkButton ID="btnGo" runat="server" CausesValidation="False" CommandArgument="-2"
                    CommandName="Page" Text="GO" />
            </PagerTemplate>
            </asp:GridView> 

            <asp:GridView ID="paymentProjectOrderList" runat="server" 
                  AutoGenerateColumns="False" Width="676px"  onpageindexchanging="GV_PPO_PageIndexChanging"
                    AllowPaging="True" PageSize="6" style="margin-top: 0px"  visible="false" 
                  onrowcommand="paymentProjectOrderList_RowCommand">
                            <Columns>
                                <asp:BoundField DataField="orderId" HeaderText="订单号"></asp:BoundField>   
                                <asp:BoundField DataField="totalAmount" HeaderText="订单金额"></asp:BoundField>   
                                <asp:BoundField DataField="orderDate" HeaderText="下单日期"></asp:BoundField> 
                                <asp:BoundField DataField="projectName" HeaderText="缴费项名称" ></asp:BoundField>                                  
                                <asp:TemplateField HeaderText="明细查看">
                                   <ItemTemplate >
                                        <asp:Button ID="btnDetail" runat="server" CommandName="Detail" Text="明细查看" 
                                            CommandArgument =<%#DataBinder.Eval(Container.DataItem,"orderId")%> 
                                             style="height: 21px"/>
                                  </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                           <HeaderStyle VerticalAlign="Middle" HorizontalAlign="Center" Height="30px" CssClass="h3bar box" />
                            <RowStyle Height="25px"  VerticalAlign="Middle" HorizontalAlign="Center" /> 
                            <FooterStyle />
                            <PagerStyle Font-Bold="True" Font-Size="12px"
                                HorizontalAlign="Right" />
                                 <PagerTemplate>
                当前第:
                <asp:Label ID="LabelCurrentPage" runat="server" Text="<%# ((GridView)Container.NamingContainer).PageIndex + 1 %>"></asp:Label>
                页/共:
                <asp:Label ID="LabelPageCount" runat="server" Text="<%# ((GridView)Container.NamingContainer).PageCount %>"></asp:Label>
                页
                <asp:LinkButton ID="LinkButtonFirstPage" runat="server" CommandArgument="First" CommandName="Page"
                    Visible='<%#((GridView)Container.NamingContainer).PageIndex != 0 %>'>首页</asp:LinkButton>
                <asp:LinkButton ID="LinkButtonPreviousPage" runat="server" CommandArgument="Prev"
                    CommandName="Page" Visible='<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>'>上一页</asp:LinkButton>
                <asp:LinkButton ID="LinkButtonNextPage" runat="server" CommandArgument="Next" CommandName="Page"
                    Visible='<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>'>下一页</asp:LinkButton>
                <asp:LinkButton ID="LinkButtonLastPage" runat="server" CommandArgument="Last" CommandName="Page"
                    Visible='<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>'>尾页</asp:LinkButton>
                转到第
                <asp:TextBox ID="txtNewPageIndex" runat="server" Width="20px" Text='<%# ((GridView)Container.Parent.Parent).PageIndex + 1 %>' />页
                <asp:LinkButton ID="btnGo" runat="server" CausesValidation="False" CommandArgument="-2"
                    CommandName="Page" Text="GO" />
            </PagerTemplate>


           </asp:GridView> 
           <div id="detailDiv" runat="server" visible="false">
             <br />
             订单明细
              <asp:GridView ID="projectDetailList" runat="server" AutoGenerateColumns="False" onpageindexchanging="GV_PPO_PageIndexChanging"
                    AllowPaging="True" PageSize="6" style="margin-top: 0px" >
                            <Columns>
                                <asp:BoundField DataField="orderId" HeaderText="订单号"></asp:BoundField>   
                                <asp:BoundField DataField="amount" HeaderText="订单金额"></asp:BoundField>   
                                <asp:BoundField DataField="detailName" HeaderText="详细项名称" ></asp:BoundField>                                  
                            </Columns>
                             <HeaderStyle VerticalAlign="Middle" HorizontalAlign="Center" Height="30px" CssClass="h3bar box" />
                            <RowStyle Height="25px"  VerticalAlign="Middle" HorizontalAlign="Center" /> 
                            <FooterStyle />
                            <PagerStyle Font-Bold="True" Font-Size="12px"
                                HorizontalAlign="Right" />

                                 <PagerTemplate>
                当前第:
                <asp:Label ID="LabelCurrentPage" runat="server" Text="<%# ((GridView)Container.NamingContainer).PageIndex + 1 %>"></asp:Label>
                页/共:
                <asp:Label ID="LabelPageCount" runat="server" Text="<%# ((GridView)Container.NamingContainer).PageCount %>"></asp:Label>
                页
                <asp:LinkButton ID="LinkButtonFirstPage" runat="server" CommandArgument="First" CommandName="Page"
                    Visible='<%#((GridView)Container.NamingContainer).PageIndex != 0 %>'>首页</asp:LinkButton>
                <asp:LinkButton ID="LinkButtonPreviousPage" runat="server" CommandArgument="Prev"
                    CommandName="Page" Visible='<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>'>上一页</asp:LinkButton>
                <asp:LinkButton ID="LinkButtonNextPage" runat="server" CommandArgument="Next" CommandName="Page"
                    Visible='<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>'>下一页</asp:LinkButton>
                <asp:LinkButton ID="LinkButtonLastPage" runat="server" CommandArgument="Last" CommandName="Page"
                    Visible='<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>'>尾页</asp:LinkButton>
                转到第
                <asp:TextBox ID="txtNewPageIndex" runat="server" Width="20px" Text='<%# ((GridView)Container.Parent.Parent).PageIndex + 1 %>' />页
                <asp:LinkButton ID="btnGo" runat="server" CausesValidation="False" CommandArgument="-2"
                    CommandName="Page" Text="GO" />
            </PagerTemplate>
           </asp:GridView> 
           </div>




















<div align="center">
    &nbsp;</div>
</div>


</asp:Content>
